package mirrormonkey.core.member;

import com.jme3.network.MessageConnection;

public final class SearchNamedUnsafeKey extends SearchKey {

	private final String name;

	public SearchNamedUnsafeKey(MessageConnection connection,
			Object[] parameters, String name) {
		super(connection, parameters);
		this.name = name;
	}

	@Override
	public final boolean equals(Object o) {
		if (!o.getClass().equals(PresentNamedKey.class)) {
			return false;
		}
		return ((PresentNamedKey) o).name.equals(name);
	}

}
